package org.crmsystem.dao;

import java.util.List;
import java.util.Map;

import org.crmsystem.model.Appoint;
import org.springframework.stereotype.Repository;
/**
 * 预约业务Dao
 * @author Administrator
 *
 */
@Repository
public interface IAppointMapper {

	/**
	 * 添加预约信息
	 * @param appoint
	 * @return
	 */
	int insertAppoint(Appoint appoint) throws Exception;
	/**
	 * 删除预约信息
	 * @param id
	 * @return
	 */
	int deleteAppoint(int id);
	/**
	 * 编辑预约信息
	 * @param appoint
	 * @return
	 * @throws Exception
	 */
	int updateAppointById(Appoint appoint) throws Exception;
	/**
	 * 多条件查询预约信息
	 * @param map
	 * @return
	 */
	List<Appoint> getAppointByKeyword(Map<String,String> map);
	/**
	 * 根据id查询预约信息
	 * @param id
	 * @return
	 */
	Appoint getAppById(int id);
	
}
